package com.xingfudazi.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xingfudazi.app.domain.AppAccount;
import com.xingfudazi.app.domain.AppMember;
import com.xingfudazi.app.enums.MemberTypeEnum;

import java.util.List;

/**
 * 会员Service接口
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
public interface IAppMemberService  extends IService<AppMember>
{
    /**
     * 查询会员
     * 
     * @param id 会员主键
     * @return 会员
     */
    public AppMember selectAppMemberById(Long id);

    /**
     * 查询会员列表
     * 
     * @param appMember 会员
     * @return 会员集合
     */
    public List<AppMember> selectAppMemberList(AppMember appMember);

    /**
     * 新增会员
     * 
     * @param appMember 会员
     * @return 结果
     */
    public int insertAppMember(AppMember appMember);

    /**
     * 修改会员
     * 
     * @param appMember 会员
     * @return 结果
     */
    public int updateAppMember(AppMember appMember);


    /**
     * 删除会员信息
     * 
     * @param id 会员主键
     * @return 结果
     */
    public int deleteAppMemberById(Long id);


    /**
     * 根据账号信息 初始化会员
     */
    void init(AppAccount appAccount);

    AppMember selectAppMember(Long aid, MemberTypeEnum memberTypeEnum);

    /**
     * 关注
     */
    void follow(Long followId, int followNum);
}
